home *** CD-ROM | disk | FTP | other *** search
Wrap
INI File | 2003-06-19 | 11.6 KB | 368 lines
; NETSNMP.INX ; ; Simple Network Management Protocol ; ; Copyright (c) 1993-1999, Microsoft Corporation [Version] Signature="$Windows NT$" LayoutFile=layout.inf Provider=%Msft% DriverVer=03/03/2003,5.00.2195.6675 [SNMP] CopyFiles = CpyFiles_Sys DelFiles = DelObsolete_Sys Uninstall = SNMP.Remove StartServices = SNMP, SNMPTRAP [SNMP.Remove] DelReg = SNMP.DelReg DelFiles = DelFiles_Sys [DestinationDirs] CpyFiles_Sys = 11 ;%windir%\System32 DelFiles_Sys = 11 ;%windir%\System32 DelObsolete_Sys = 11 ;%windir%\System32 [SNMP.Services] AddService = SNMP, 0x10, SNMP_Service_Inst, SNMP_Evt AddService = SNMPTRAP, 0x10, SNMPTRAP_Service_Inst, SNMPTRAP_Evt [SNMP.Remove.Services] DelService = SNMP, 0x04 DelService = SNMPTRAP, 0x04 ;------------------------------------------------------------------------- ; SNMP subagent sections/entries ; In order to add an SNMP subagent: ; - define an entry in each of [SNMP.SNMPAgent] and [SNMP.Remove.SNMPAgent] ; - define [SNMP.Add<subagent>] and [SNMP.Remove.Del<subagent>] ; - make sure the binary is copied/removed by [CpyFiles_Sys] and [DelFiles_Sys] ; - any other particular registry configuration should go in [SNMP.AddReg] and [SNMP.DelReg] ;------------------------------------------------------------------------- [SNMP.SNMPAgent] AddAgent = SNMP.AddLMMIB2Agent AddAgent = SNMP.AddINETMIB1Agent AddAgent = SNMP.AddHOSTMIBAgent AddAgent = SNMP.AddSNMPAgent AddAgent = SNMP.AddEVNTAgent AddAgent = SNMP.AddWINSSNMPAgent AddAgent = SNMP.AddDHCPSNMPAgent AddAgent = SNMP.AddACSSNMPAgent AddAgent = SNMP.AddIGMPSNMPAgent AddAgent = SNMP.AddIPMulticastSNMPAgent AddAgent = SNMP.AddIPXSNMPAgent AddAgent = SNMP.AddIASSNMPAgent [SNMP.Remove.SNMPAgent] DelAgent = SNMP.Remove.DelLMMIB2Agent DelAgent = SNMP.Remove.DelINETMIB1Agent DelAgent = SNMP.Remove.DelHOSTMIBAgent DelAgent = SNMP.Remove.DelSNMPAgent DelAgent = SNMP.Remove.DelEVNTAgent DelAgent = SNMP.Remove.DelWINSSNMPAgent DelAgent = SNMP.Remove.DelDHCPSNMPAgent DelAgent = SNMP.Remove.DelACSSNMPAgent DelAgent = SNMP.Remove.DelIGMPSNMPAgent DelAgent = SNMP.Remove.DelIPMulticastSNMPAgent DelAgent = SNMP.Remove.DelIPXSNMPAgent AddAgent = SNMP.Remove.DelIASSNMPAgent [SNMP.AddLMMIB2Agent] ServiceName = "SNMP" AgentName = "LANManagerMIB2Agent" AgentPath = "%SystemRoot%\System32\lmmib2.dll" [SNMP.AddINETMIB1Agent] ServiceName = "SNMP" AgentName = "RFC1156Agent" AgentPath = "%SystemRoot%\System32\inetmib1.dll" [SNMP.AddHOSTMIBAgent] ServiceName = "SNMP" AgentName = "HostMIB" AgentPath = "%SystemRoot%\System32\hostmib.dll" [SNMP.AddSNMPAgent] ServiceName = "SNMP" AgentName = "SNMPMIB" AgentPath = "%SystemRoot%\System32\snmpmib.dll" [SNMP.AddEVNTAgent] ServiceName = "SNMP" AgentName = "SNMP_EVENTS" AgentPath = "%SystemRoot%\System32\evntagnt.dll" [SNMP.AddWINSSNMPAgent] ServiceName = "WINS" AgentName = "WINSMibAgent" AgentPath = "%SystemRoot%\System32\winsmib.dll" [SNMP.AddDHCPSNMPAgent] ServiceName = "DHCPServer" AgentName = "DhcpMibAgent" AgentPath = "%SystemRoot%\System32\dhcpmib.dll" [SNMP.AddACSSNMPAgent] ServiceName = "RSVP" AgentName = "ACS" AgentPath = "%SystemRoot%\System32\acsmib.dll" [SNMP.AddIGMPSNMPAgent] ServiceName = "RemoteAccess" AgentName = "IGMPMibAgent" AgentPath = "%SystemRoot%\System32\igmpagnt.dll" [SNMP.AddIPMulticastSNMPAgent] ServiceName = "RemoteAccess" AgentName = "IPMulticastMibAgent" AgentPath = "%SystemRoot%\System32\mcastmib.dll" [SNMP.AddIPXSNMPAgent] ServiceName = "RemoteAccess" AgentName = "IPXMibAgent" AgentPath = "%SystemRoot%\System32\rtipxmib.dll" [SNMP.AddIASSNMPAgent] ServiceName = "IAS" AgentName = "IASAgent" AgentPath = "%SystemRoot%\System32\iasperf.dll" [SNMP.Remove.DelLMMIB2Agent] AgentName = "LANManagerMIB2Agent" [SNMP.Remove.DelINETMIB1Agent] AgentName = "RFC1156Agent" [SNMP.Remove.DelHOSTMIBAgent] AgentName = "HostMIB" [SNMP.Remove.DelSNMPAgent] AgentName = "SNMPMIB" [SNMP.Remove.DelEVNTAgent] AgentName = "SNMP_EVENTS" [SNMP.Remove.DelWINSSNMPAgent] AgentName = "WINSMibAgent" [SNMP.Remove.DelDHCPSNMPAgent] AgentName = "DhcpMibAgent" [SNMP.Remove.DelACSSNMPAgent] AgentName = "ACS" [SNMP.Remove.DelIGMPSNMPAgent] AgentName = "IGMPMibAgent" [SNMP.Remove.DelIPMulticastSNMPAgent] AgentName = "IPMulticastMibAgent" [SNMP.Remove.DelRIPSNMPAgent] AgentName = "RIPMibAgent" [SNMP.Remove.DelOSPFSNMPAgent] AgentName = "OSPFMibAgent" [SNMP.Remove.DelBOOTPSNMPAgent] AgentName = "BOOTPMibAgent" [SNMP.Remove.DelIPXSNMPAgent] AgentName = "IPXMibAgent" [SNMP.Remove.DelIASSNMPAgent] AgentName = "IASAgent" ;------------------------------------------------------------------------- ; File operations performed on SNMP service installation ; - copy files to %windir%system32 directory ; - copy files to %windir%help directory ; - delete obsoleted files from %windir%\system32 directory ;------------------------------------------------------------------------- [CpyFiles_Sys] lmmib2.dll,,,2 hostmib.dll,,,2 snmpmib.dll,,,2 evntagnt.dll,,,2 evntcmd.exe,,,2 evntwin.exe,,,2 snmp.exe,,,2 snmptrap.exe,,,2 acs.mib,,,2 accserv.mib,,,2 authserv.mib,,,2 dhcp.mib,,,2 ftp.mib,,,2 hostmib.mib,,,2 http.mib,,,2 inetsrv.mib,,,2 ipforwd.mib,,,2 lmmib2.mib,,,2 mcastmib.mib,,,2 mib_ii.mib,,,2 mipx.mib,,,2 mripsap.mib,,,2 msft.mib,,,2 msipbtp.mib,,,2 msiprip2.mib,,,2 nipx.mib,,,2 smi.mib,,,2 wfospf.mib,,,2 wins.mib,,,2 [DelObsolete_Sys] snmpcfg.exe,,,1 ;------------------------------------------------------------------------- ; File operations performed when SNMP service gets uninstalled ; - delete files from %windir%\system32 directory ; - delete files from %windir%\help directory ;------------------------------------------------------------------------- [DelFiles_Sys] lmmib2.dll,,,1 hostmib.dll,,,1 snmpmib.dll,,,1 evntagnt.dll,,,1 evntcmd.exe,,,1 evntwin.exe,,,1 snmp.exe,,,1 snmptrap.exe,,,1 acs.mib,,,1 accserv.mib,,,1 authserv.mib,,,1 dhcp.mib,,,1 ftp.mib,,,1 hostmib.mib,,,1 http.mib,,,1 inetsrv.mib,,,1 ipforwd.mib,,,1 lmmib2.mib,,,1 mcastmib.mib,,,1 mib_ii.mib,,,1 mipx.mib,,,1 mripsap.mib,,,1 msft.mib,,,1 msipbtp.mib,,,1 msiprip2.mib,,,1 nipx.mib,,,1 smi.mib,,,1 wfospf.mib,,,1 wins.mib,,,1 ;------------------------------------------------------------------------- ; Service Install Sections ;------------------------------------------------------------------------- [SNMP_Service_Inst] DisplayName = %SNMP_Display% ServiceType = %SERVICE_WIN32_OWN_PROCESS% StartType = %SERVICE_AUTO_START% ErrorControl = 1 ServiceBinary = "%%SystemRoot%%\System32\snmp.exe" Dependencies = EventLog StartName = LocalSystem AddReg = SNMP_AddReg Description = %SNMP_Desc% [SNMPTRAP_Service_Inst] DisplayName = %SNMPTRAP_Display% ServiceType = %SERVICE_WIN32_OWN_PROCESS% StartType = %SERVICE_DEMAND_START% ErrorControl = 1 ServiceBinary = "%%SystemRoot%%\System32\snmptrap.exe" Dependencies = EventLog StartName = LocalSystem AddReg = SNMPTRAP_AddReg Description = %SNMPTRAP_Desc% [SNMP_AddReg] HKR,"Parameters", "EnableAuthenticationTraps", 0x00010003, 1 HKR,"Parameters", "NameResolutionRetries", 0x00010003, 16 HKR,"Parameters\ExtensionAgents", , 0x00000010 ; no values HKR,"Parameters\PermittedManagers", , 0x00000010 ; no values HKR,"Parameters\TrapConfiguration", , 0x00000010 ; no values HKR,"Parameters\ValidCommunities", , 0x00000010 ; no values HKR,"Parameters\RFC1156Agent", "sysContact", 0x00000002, "" HKR,"Parameters\RFC1156Agent", "sysLocation", 0x00000002, "" HKR,"Parameters\RFC1156Agent", "sysServices", 0x00010003, 76 HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog", "ConfigurationType", 0x00010003, 0 HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog", "TranslatorEnabled", 0x00000002, "No" HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog\Parameters", "BaseEnterpriseOID", 0x00000002, "1.3.6.1.4.1.311.1.13.1" HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog\Parameters", "SupportedView", 0x00000002, "2.0" HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog\Sources", , 0x00000010 ; no values [SNMP.DelReg] HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\Application\EvntAgnt" ;------------------------------------------------------------------------- ; Event sources registered when SNMP is installed ;------------------------------------------------------------------------- [SNMP_Evt] AddReg = SNMP_Evt_AddReg AddReg = EVNTAGNT_Evt_AddReg ;------------------------------------------------------------------------- ; register SNMP.EXE as an event source ;------------------------------------------------------------------------- [SNMP_Evt_AddReg] HKR,, EventMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\snmp.exe" HKR,, TypesSupported, %REG_DWORD%, 0x00000007 ;------------------------------------------------------------------------- ; register EVNTAGNT.DLL as an event source ;------------------------------------------------------------------------- [EVNTAGNT_Evt_AddReg] HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\Application\EvntAgnt", EventMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\evntagnt.dll" HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\Application\EvntAgnt", TypesSupported, %REG_DWORD%, 0x00000007 ;------------------------------------------------------------------------- ; Event sources registered when SNMPTRAP service is installed ;------------------------------------------------------------------------- [SNMPTRAP_Evt] AddReg = SNMPTRAP_Evt_AddReg ;------------------------------------------------------------------------- ; register SNMPTRAP.EXE as an event source ;------------------------------------------------------------------------- [SNMPTRAP_Evt_AddReg] HKR,, EventMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\snmptrap.exe" HKR,, TypesSupported, %REG_DWORD%, 0x00000007 [Strings] Msft = "Microsoft" ; Service names SNMP_Display = "SNMP Service" SNMP_Desc = "Includes agents that monitor the activity in network devices and report to the network console workstation." SNMPTRAP_Display = "SNMP Trap Service" SNMPTRAP_Desc = "Receives trap messages generated by local or remote SNMP agents and forwards the messages to SNMP management programs running on this computer." SNMP_HELP = "Simple Network Management Protocol service that enables a Windows computer to be administered remotely with an SNMP management tool." Admin_Tools = "Administrative Tools" REG_MULTI_SZ = 0x10000 REG_EXPAND_SZ = 0x20000 FLG_ADDREG_KEYONLY = 0x0010 REG_DWORD = 0x10001 SERVICE_DEMAND_START = 3 SERVICE_AUTO_START = 2 SERVICE_WIN32_SHARE_PROCESS = 32 SERVICE_FILE_SYSTEM_DRIVER = 2 SERVICE_WIN32_OWN_PROCESS = 16 ; Characteristic flags NCF_VIRTUAL = 0x0001 NCF_WRAPPER = 0x0002 NCF_PHYSICAL = 0x0004 NCF_HIDDEN = 0x0008 NCF_NO_SERVICE = 0x0010 NCF_NOT_USER_REMOVABLE = 0x0020 NCF_HAS_UI = 0x0080 NCF_MODEM = 0x0100 KEY_OPTIONAL = "SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents"